Text to HTML List
Text to HTML List lets you turn nonempty lines into escaped HTML list items. Enter your own values or load the worked example.
- Copy or download the computed result
- Adjust input text
- See the processing method and limits
Method and calculation
Turn nonempty lines into escaped HTML list items.
Inputs and settings
Text to HTML List accepts Input text; List type (ul, ol).
Worked example
Text to HTML List example — Input text: "Hello world\nA second line\nHello world"; List type: "ul". Computed output: <ul> <li>Hello world</li> <li>A second line</li> <li>Hello world</li> </ul>
Output and limitations
Text to HTML List: Output escapes HTML characters and does not execute pasted markup.
Technical references: JavaScript Unicode normalization
Text to HTML List FAQs
Text to HTML List applies the following rule to your input: Turn nonempty lines into escaped HTML list items. The worked example on this page uses the same processor as the result button.
Text to HTML List has these boundaries: Output escapes HTML characters and does not execute pasted markup. Start by checking the input text field against the units or format shown.
Text to HTML List provides this sample: <ul> <li>Hello world</li> <li>A second line</li> <li>Hello world</li> </ul>. Use the sample button to reproduce it, then replace the inputs with your own values.