#92 str_get_html()'s defaultBRText does'nt work.

open
nobody
None
5
2012-10-10
2011-11-25
No

In str_get_html(), set $stripRN simple_html_dom object
and set $defaultBRText in $dom->load().

@@ -82,13 +82,13 @@ function file_get_html($url, $use_include_path = false, $context=null, $offset =
// get html dom from string
function str_get_html($str, $lowercase=true, $forceTagsClosed=true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN=true, $defaultBRText=DEFAULT_BR_TEXT)
{
- $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $defaultBRText);
+ $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText);
if (empty($str))
{
$dom->clear();
return false;
}
- $dom->load($str, $lowercase, $stripRN);
+ $dom->load($str, $lowercase, $stripRN, $defaultBRText);
return $dom;
}

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks