escape

This block is part of the value group and was last modified in core v11.0.1.

escape v11.0.1

Converts the characters "&", "<", ">", '"', and "'" in string to their corresponding HTML entities.

In pins 1
  • Raw required
    value

    Value to escape

Out pins 1
  • value
    value

HTML-escapes exactly five characters - & < > " ' - into &amp; &lt; &gt; &quot; &#39;. ALL occurrences are replaced in one pass and nothing else is touched; already-escaped text is escaped again ("&amp;" becomes "&amp;amp;").

A typical wiring for escape: value feeds the value pin; the value out pin feeds convert to uppercase.

Studio canvas example for the escape block: typical wiring for escape.

Version history

Introduced in v11.0.1.


Back to value Return to the main group to view all sub-groups Back to value Return to the group to view all blocks within this group