I have a ticker on a page where the client wants to enter HTML as content of the page. The content belongs to a property called "bc_TickerData" of the home page node(with id 1116). The macro I tried was:
However, this macro only returns the HTML as it is on the page, but i want to render the output of the HTML as part of the page. Is that possible using xslt? For eg. if a user enters <b> Hi </b> the output(as you might expect) is <b> Hi </b> but I want to get Hi
I believe there is a render-macro function in the library but not sure if that's what's needed.
Rendering user entered HTML content using a macro
I have a ticker on a page where the client wants to enter HTML as content of the page. The content belongs to a property called "bc_TickerData" of the home page node(with id 1116). The macro I tried was:
However, this macro only returns the HTML as it is on the page, but i want to render the output of the HTML as part of the page. Is that possible using xslt? For eg. if a user enters <b> Hi </b> the output(as you might expect) is <b> Hi </b> but I want to get Hi
I believe there is a render-macro function in the library but not sure if that's what's needed.
Thanks in advance.
what happens if you remove the disable outputescaping part?
I get the same output except < have been replaced by < ,etc. ALso there's a <p> tag around the output.
Hi arviman,
It sounds like you are using a Richtext editor as the data type. Try using a Textbox multiple instead.
Regards,
Kevin
Thanks Kevin, that's exactly what I ended up doing.
is working on a reply...