summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-08-19 02:21:56 +0200
committerUrban Müller2024-08-19 02:21:56 +0200
commitc60e76906060423a232ecc8ad828925a638d0fa5 (patch)
treece99df2a4638eea9dd66a6a243952c4961013665
parentb70c14f80103015ee8f71c4fbec498f4eee993a6 (diff)
downloaditools-c60e76906060423a232ecc8ad828925a638d0fa5.tar.gz
itools-c60e76906060423a232ecc8ad828925a638d0fa5.tar.bz2
itools-c60e76906060423a232ecc8ad828925a638d0fa5.zip
fewer backslackes when ED()-ing html content with debug output
-rw-r--r--it_html.class2
-rw-r--r--it_text.class2
2 files changed, 2 insertions, 2 deletions
diff --git a/it_html.class b/it_html.class
index 71853dd..ec1e1ce 100644
--- a/it_html.class
+++ b/it_html.class
@@ -423,7 +423,7 @@ static function sanitize($html)
else
$result = it::replace(array('&(#\d+;)' => '&$1'), it_html::Q(html_entity_decode(strip_tags($html), ENT_COMPAT, $charset)));
- return $GLOBALS['debug_q'] ? "<span style='background:#8FF'>$result</span>" : it::replace(array('<(div|p|i|b|a)></\1>' => ""), $result); # remove empty tags
+ return $GLOBALS['debug_q'] ? "<span style=\"background:#8FF\">$result</span>" : it::replace(array('<(div|p|i|b|a)></\1>' => ""), $result); # remove empty tags
}
/**
diff --git a/it_text.class b/it_text.class
index e08fff0..78df85b 100644
--- a/it_text.class
+++ b/it_text.class
@@ -149,7 +149,7 @@ function text($label, $language = null)
if ($GLOBALS['debug_texts'] && !preg_match('/submit|button|servicedomain/i', $label) && (!$_GET['it_texts_mark'] || $label == $_GET['it_texts_mark']))
{
- $text = "<span style='background:#8F8' title='$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ")'>" . ($text ? $text : $label) . "</span><a href='" . it::replace(['\.texts\.' => '.'], U(it::replace(['^///' => '/'], '//' . $this->label_to_service[$label] . '/admin/texts'), ['edit' => $label])) . "'>.</a>";
+ $text = "<span style=\"background:#8F8\" title=\"$label (" . it_debug::backtrace(array('levels'=>1, 'skipfiles'=>"text|auto_prepend")) . ')">' . ($text ? $text : $label) . "</span><a href=\"" . it::replace(['\.texts\.' => '.'], U(it::replace(['^///' => '/'], '//' . $this->label_to_service[$label] . '/admin/texts'), ['edit' => $label])) . '">.</a>';
}
if (isset($GLOBALS['it_text_sampling']))