HTML elements with an opening element, but no closing element,
such as <img>
or <link>
, also called void elements should
be closed by calling close_html_lone_element
:
$html_element =
$converter->close_html_lone_element ($unclosed_element)
¶Close the $unclosed_element, which can contain attributes, by prepending
‘>’ or ‘/>’ depending on the USE_XML_SYNTAX
customization
variable value (see HTML Features Customization in Texinfo).
Examples of use:
$description = $converter->close_html_lone_element( "<meta name=\"description\" content=\"$description\"");