Table of contents
Source: shared/code/tce_functions_html2txt.php
Function to convert HTML code to Text string.
Functions
F_html_to_text()
Convert HTML code to Text string.
function F_html_to_text(
mixed $str,
mixed $preserve_newlines = false,
mixed $display_links = false
): text
Parameters:
$str(mixed): (string) HTML code string to convert.$preserve_newlines(mixed): (boolean) If true convert newline characters to HTML line breaks.$display_links(mixed): (boolean) If true gives a textual representation of links and images.
Returns: text: string