Module _m.html.commands

Commands for the html module.

Functions

decode_html_entities () Uses PHP to replace HTML entities in the selection or the contents of the current line with their ASCII equivalents.
decode_url () Uses PHP to replace the URL-encoded selection or the contents of the current line with its URL-decoded equivalent.
encode_html_entities () Uses PHP to replace special characters in the selection or the contents of the current line with their HTML entities.
encode_url () Uses PHP to replace the selection or the contents of the current line with its URL-encoded equivalent.
get_sel_or_line () [Local function] Returns the current selection or the contents of the current line.
php_command (cmd, input) [Local function] Executes PHP and returns the result printed to STDOUT.
strip_tags () Uses PHP to strip HTML and PHP tags from the selection or the contents of the current line and replace the text.
toggle_block_comment () Toggles HTML block comments.
wrap_in_tag () Wraps the selected text inside a snippet that expands to an HTML tag.


Functions

decode_html_entities ()
Uses PHP to replace HTML entities in the selection or the contents of the current line with their ASCII equivalents.

See also:

decode_url ()
Uses PHP to replace the URL-encoded selection or the contents of the current line with its URL-decoded equivalent.

See also:

encode_html_entities ()
Uses PHP to replace special characters in the selection or the contents of the current line with their HTML entities.

See also:

encode_url ()
Uses PHP to replace the selection or the contents of the current line with its URL-encoded equivalent.

See also:

get_sel_or_line ()
[Local function] Returns the current selection or the contents of the current line.
php_command (cmd, input)
[Local function] Executes PHP and returns the result printed to STDOUT.

Parameters

  • cmd: The PHP code to execute.
  • input: The text provided as STDIN for cmd.
strip_tags ()
Uses PHP to strip HTML and PHP tags from the selection or the contents of the current line and replace the text.

See also:

toggle_block_comment ()
Toggles HTML block comments. If a single line is being block commented, it is done so on the same line. If multiple lines are being block commented, the start of the comment is placed on a new line before the first selected line and the end of the comment is placed on a new line after the last selected line.
wrap_in_tag ()
Wraps the selected text inside a snippet that expands to an HTML tag.

Valid XHTML 1.0!