mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 16:48:49 +01:00
Slightly more robust checking for "blank" HTML area in case CKEditor adds some styles
This commit is contained in:
parent
820d269e71
commit
5ceea5b93e
@ -212,7 +212,7 @@ class HtmLawed
|
||||
$font_size = $GLOBALS['egw_info']['user']['preferences']['common']['rte_font_size'];
|
||||
|
||||
// Check for "blank" = just user preference span - for some reason we can't match on the entity, so approximate
|
||||
$regex = '#^<span style="font-family:'.$font.';font-size:'.$font_size.';">.?</span>$#us';
|
||||
$regex = '#^<span style="[^"]*font-family:'.$font.'; font-size:'.$font_size.'pt;[^"]*">.?</span>$#us';
|
||||
if(preg_match($regex,$html))
|
||||
{
|
||||
return '';
|
||||
|
Loading…
Reference in New Issue
Block a user