You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By looking at the code it surely seems that it's intentional 😕. @pyykkis has it always been like that and is it intentional? Maybe it should be replaced with some other example either way
@kristoff-it I wasn't aware of the relative directive, perhaps that would solve it. (Though it seems like a lot of overhead to include arbitrary HTML in a template). I was mainly confused as to why the demo itself doesn't seem to be rendering properly:
Uhm yeah that's weird, I suppose it's something that has been left behind from the earlier days of this project.
I've only used transparency for one project as of now, so I'm not a super expert, but:
Though it seems like a lot of overhead to include arbitrary HTML in a template
If the HTML in question is generated by you in the browser, I suggest you try to change how your app is structured to make, for example, transparency handle also that rendering.
If the HTML is recieved as-is, then you don't have much choice I guess, but it's not that bad, in my project I have to render some RSS feeds like this and, while the syntax is not the most concise, it still works flawlessly. I still prefere this over weird naming conventions a la Ruby.
Alternatively you could $.html(function) all the html contents afterwards: http://api.jquery.com/html/#html2 (if you pass a function you can have a form of iteration over your data structure).
Activity
rikukissa commentedon Aug 7, 2015
By looking at the code it surely seems that it's intentional 😕. @pyykkis has it always been like that and is it intentional? Maybe it should be replaced with some other example either way
rikukissa commentedon Aug 8, 2015
The "Goodbye!" is also not rendered so I'm guessing thats not intentional..
daslicht commentedon Aug 8, 2015
if you add _class= "span"_ to the span _Goodbye!_ is rendered :)
rmx90210 commentedon Mar 17, 2016
I love this project but I'm running into the same issue -- HTML is being rendered as plain text.
+1
kristoff-it commentedon Mar 17, 2016
@rbrtmrtn
Maybe I didn't properly understand the question, but when I want to render a property as HTML, I use the relative directive:
Result:
rmx90210 commentedon Mar 18, 2016
@kristoff-it I wasn't aware of the relative directive, perhaps that would solve it. (Though it seems like a lot of overhead to include arbitrary HTML in a template). I was mainly confused as to why the demo itself doesn't seem to be rendering properly:
http://leonidas.github.io/transparency/
In the
Resultpane, shouldn't that text be italicized?kristoff-it commentedon Mar 18, 2016
Uhm yeah that's weird, I suppose it's something that has been left behind from the earlier days of this project.
I've only used transparency for one project as of now, so I'm not a super expert, but:
If the HTML in question is generated by you in the browser, I suggest you try to change how your app is structured to make, for example, transparency handle also that rendering.
If the HTML is recieved as-is, then you don't have much choice I guess, but it's not that bad, in my project I have to render some RSS feeds like this and, while the syntax is not the most concise, it still works flawlessly. I still prefere this over weird naming conventions a la Ruby.
Alternatively you could
$.html(function)all the html contents afterwards: http://api.jquery.com/html/#html2 (if you pass a function you can have a form of iteration over your data structure).rmx90210 commentedon Mar 18, 2016
Those seem like good workarounds, thanks @kristoff-it ! 👍