html::encode($string, $keepTags = true)

Converts a string to a html-safe string

  • $string (string)
  • $keepTags (boolean)
    True: lets stuff inside html tags untouched.
  • return (string)
    The html string

Is something missing or incorrect? Edit this page on Github…