TOPIC: InvertHtml strips attributes?
#1577
InvertHtml strips attributes? 10 Months, 3 Weeks ago
Code:


Print(InvertHtml('<p class="example">Hello</p>').Eval())



Results in:

Code:


<p>Hello</p>



Is there any way around this?

Jeremy
 
 
#1578
Re:InvertHtml strips attributes? 10 Months, 3 Weeks ago
Ok, I looked at InvertHtml and found that it ignores outputting any attributes. I have a patch for this as well as a patch to the associated test. How can I submit these?

I also have a few patches for the version control system.

Jeremy
 
 
#1579
Re:InvertHtml strips attributes? 10 Months, 3 Weeks ago
Great, thanks!

Just export the records from Library View or from Version Control and email them to me (mckinlay at suneido dot com)

Note: When exporting from Library View it adds to an existing file. If you want to start fresh, delete the file first.
 
 
Last Edit: 2009/10/05 00:50 By andrew.
 
andrew
 
#1580
Re:InvertHtml strips attributes? 10 Months, 3 Weeks ago
I found one problem with my attribute fix and that is code is not expanded in an actual attribute so I'll figure that out then send you a few patches.

i.e.
Code:


<p class="<$= className $>">Hello, World!</p>



outputs just that, <$= className $> as is. I'll dig in and see what I can find.

Jeremy