I need to set the `src` attr of a <script> tag and the `src` attr
looks like "http://yahoo.com/?x=1&y=2". Right now, the string is
getting escaped and that's causing problems. I remember that the old
Enlive has a function called `escaped` which would avoid further
escaping, but that's gone now after the refactoring.
Is there any idiomatic way to avoid escaping of certain strings in
Enlive? Hacky solutions are welcome as well :-)
Regards,
BG
--
Baishampayan Ghose
b.ghose at gmail.com
I also would like need a solution to this. What's the best way to tell
enlive not to escape something? Sorry I'm kind of new to this. Any
advice would be greatly appreciated.
--
You received this message because you are subscribed to the Google Groups "Enlive" group.
To post to this group, send email to enliv...@googlegroups.com.
To unsubscribe from this group, send email to enlive-clj+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enlive-clj?hl=en.
<a href="http://yahoo.com/?x=1&y=2">...</a> is theoretically valid only in HTML5.
Are the three of us experiencing troubles only with ampersands in attributes or do you really want to insert random strings in the middle of a template's output?
Anyway I acknowledge that the serialization mechanism needs to be tunable (at least two options: xml-strict and html5+non-ambiguous amersand+style/script at least).
<a href="http://yahoo.com/?x=1&y=2">...</a> is theoretically valid only in HTML5.
We're using this to insert script tag attributes that hit up yahoo's servers for combined js files. Example:<script class="z_yui" src="http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js" type="text/javascript"></script>versus<script class="z_yui" src="http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js" type="text/javascript"></script>
<script class="z_yui" src="http://yui.yahooapis.com/combo?3.3.0/build/yui/yui-min.js&3.3.0/build/loader/loader-min.js" type="text/javascript"></script>
Which browsers are choking on the & ?
--
You received this message because you are subscribed to the Google Groups "Enlive" group.
To post to this group, send email to enliv...@googlegroups.com.
To unsubscribe from this group, send email to enlive-clj+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/enlive-clj?hl=en.