Empty block

Method mtof


Info

 public function mtof (
   
string $source
   
bool $skeptic true
   
bool $dtd false
   
int $lang 1
 
): string

Converts Markup Language data (HTML or XML, string or file) to Funcdown code

Arguments
  • @source - Provided value must be valid markup string or file path to markup code.
  • @skeptic - Boolean TRUE will force conversion of all dangerous characters in attribute values to their decimal entities. FALSE will not modify attribute values.
  • @dtd - Boolean TRUE will prepend document type definition tag, based on $lang.
  • @lang - Accepts 1 or 0. For HTML to Funcdown, choose 1. For XML to Funcdown choose 0.
Return Value

Returns valid, safe and escaped Funcdown string.

Empty block