SproutCMS

This is the code documentation for the SproutCMS project

function containsFormTag()

Determines whether given HTML contains a FORM tag, which can cause nested-forms issues

Not tested with malformed input - should not be used as an XSS filter

Usage

bool Text::containsFormTag ( string $html );

Arguments

  1. string $html
    HTML to check

Return value

  • bool
    True if the string contains a FORM tag, false if it doesn't