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.14.0. This function has been downloaded 43 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.