OpenBD Wiki

From OpenBD
Jump to: navigation, search

HtmlSourceFormat()

This function takes in a block of HTML block, and produces a cleaned up, indented, printable version of it.

Contents

Parameters

HtmlSourceFormat( htmlblock )

  • htmlblock: this is html snippet or page

Returns

This function returns the printed version of the text. Use with HtmlTidy() for maximum results.

Notes

This is a very useful function for those that wish to pre-process user input forms that may result in some adding in HTML text that may break the rendering of your application. For example, inserting HTML into their display name in a CMS system.

Engine Compatibility

  • OpenBD 1.0+

Personal tools