docServerUserLandCom picture
Contents
Frontier Site

mainResponder.neuterText

Syntax mainResponder.neuterText (s, flNeuterMacros, flNeuterTags)

Params s is a string.

flNeuterMacros is a boolean. Default: true.

flNeuterTags is a boolean. Default: true.

Action If flNeuterMacros is true, replace all occurences of opening curly brace "[Macro error: Can't tokenize the line "\" in s with the corresponding HTML entity. If the #enableSafeMacros attribute i..." because the character "\" (U+005C) isn't part of the language.] <i>Beep!")
// "&lt;Beep>, &#123;speaker.beep ()&#125; <i>Beep!</i>"

Notes You can use this verb to clean up any text which entered your system from the outside world to make rendering it through the website framework safer.

As of Frontier 6.1, the low-level work is done by the new html.neuterMacros and html.neuterTags kernel verbs.

See Also mainResponder.neuterOutline

html.neuterMacros

html.neuterTags


© Copyright 1992-2026 UserLand Software. Email: webmaster@userland.com.