Escape a list element

This code block gets read by HTML as bulleted comments, though they are text. Is there a shorter method to prevent them from being formatted as list elements than escaping “<” and “>?”

{ =>
<ul messags={element.messages} />);}
let listItems = =>

{ =>


Right, I don’t know if there is a better way, but you can obscure the HTML elements by using escapes for the < characters, with &lt;

{ =>
&lt;ul messags={element.messages} />);}
let listItems = =>

{ =>

It does seem like escaping them is the way to obscure the elements in HTML. There are escape character converters for blocks of text.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.