Skip to content

String formatting to preserve indentation format for HTML without use of escaping characters

Compare
Choose a tag to compare
@michaelgantman michaelgantman released this 02 May 21:22
· 101 commits to master since this release

A new feature added that converts String to preserve indentation formatting for html without use of escape characters. It converts a String in such a way that its spaces are not modified by HTML renderer i.e. it replaces regular space characters with non-breaking spaces known as '&nbsp;' but they look in your source as regular space ' ' and not as '&nbsp;' It also replaces new line character with '<br>'.