htmlify()

Converts a normal string into a string that can be treated as raw HTML.

This function is valid in v2.1.0 to v2.24.3. This function has been downloaded 62 times.

Parameters

{string} str
The string to be converted to raw HTML.
{boolean=} optKeepWhitespace Optional, Default:false
If set to true the returned string will convert multiple, consecutive spaces to non-breaking spaces followed by one normal space. If set to true, line breaks will be converted to <br />.

Returns

{string}
HTMLified version of str.