issue 2212 add 'use_html' option

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.3.2@11100 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
ovclas 2012-08-27 08:45:03 +00:00
parent 4f984d4f91
commit a738206cdf
2 changed files with 8 additions and 0 deletions

View file

@ -206,6 +206,10 @@
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
{
if($obj->use_html != 'Y')
{
$obj->content = htmlspecialchars($obj->content);
}
$obj->content = nl2br($obj->content);
}
if(!$obj->regdate) $obj->regdate = date("YmdHis");

View file

@ -235,6 +235,10 @@ class documentController extends document {
$obj->content = preg_replace('!<\!--(Before|After)(Document|Comment)\(([0-9]+),([0-9]+)\)-->!is', '', $obj->content);
if(Mobile::isFromMobilePhone())
{
if($obj->use_html != 'Y')
{
$obj->content = htmlspecialchars($obj->content);
}
$obj->content = nl2br($obj->content);
}
// Remove iframe and script if not a top adminisrator in the session.