diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-01-26 18:39:30 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-01-26 18:39:30 +0000 |
commit | 298a7e081c2658a706ddd08b713b3f1c420564c4 (patch) | |
tree | 8905080c581ff292ef9ff2f3109e2e1f4e52f38d | |
parent | fcfecb69832d5532b9c7d5362e4b7bb781c8fa11 (diff) | |
download | rpg-298a7e081c2658a706ddd08b713b3f1c420564c4.tar.gz rpg-298a7e081c2658a706ddd08b713b3f1c420564c4.tar.bz2 |
update pattern to catch more html entities
-rw-r--r-- | inc/html.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/html.php b/inc/html.php index 89a8a4c7d..f72316a5e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -1226,8 +1226,8 @@ function html_softbreak_callback($match){ // breaking character (zero length space, U+200B / #8203) in front them. $regex = <<< REGEX (?(?= # start a conditional expression with a positive look ahead ... -&(\#\\d{1,4}|[[:alpha:]]{1,4});) # ... for html entities - we don't want to split them -&\#?\\w{1,4}; # yes pattern - a quicker match for the html entity, since we know we have one +&\#?\\w{1,6};) # ... for html entities - we don't want to split them (ok to catch some invalid combinations) +&\#?\\w{1,6}; # yes pattern - a quicker match for the html entity, since we know we have one | [?/,&\#;:]+ # no pattern - any other group of 'special' characters to insert a breaking character after ) # end conditional expression |