Dryml howto escape colon

26 views
Skip to first unread message

txapelgorri

unread,
Jun 30, 2012, 6:56:44 PM6/30/12
to hobo...@googlegroups.com
Hi there:

I need to insert an HTML snippet code like this into application.dryml (Hobo 1.3):
...
<span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/MovingImage" property="dct:title" rel="dct:type">
...
The problem is that the colon there provokes an error:
...
invalid attribute name 'xmlns:dct' (remember to use...)
...

Is there any way to escape colons to get this HTML working?

Thanks in advance, Ibon.

kevinpfromnm

unread,
Jun 30, 2012, 10:32:13 PM6/30/12
to hobo...@googlegroups.com
You should be able to use a somewhat ugly workaround of wrapping your tag with <%= '...' %>

txapelgorri

unread,
Jul 3, 2012, 3:20:46 AM7/3/12
to hobo...@googlegroups.com
Thanks Kevin,

Maybe is ugly, but it works :)

I just added this to get it working: <%= 'my_html'.html_safe %>

Ibon.
Reply all
Reply to author
Forward
0 new messages