Entity encode ampersands, quotes (single and double) and greater-than/less-than signs using htmlspecialchars(str, ENT_QUOTES). It is recommended that you use this on all text/textarea fields except those using a rich text editor or a markup language like Markdown.
Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the Textformatter
class also inherits all the methods and properties of: Textformatter, WireData and Wire.
Common
Name | Return | Summary | |
---|---|---|---|
Textformatter Textformatter Textformatter | (nothing) | Format the given text string, outside of specific Page or Field context. |
Additional methods and properties
In addition to the methods and properties above, Textformatter
API reference based on ProcessWire core version 3.0.236