mirror of
https://github.com/WhatCD/Gazelle.git
synced 2025-02-07 05:49:05 +00:00
[bbcode] allow exact code in [pre] tags
empty emoticons
This commit is contained in:
parent
8c7e564b47
commit
5aa0471e66
@ -12,10 +12,13 @@ class TEXT {
|
|||||||
':blush:' => 'blush.gif',
|
':blush:' => 'blush.gif',
|
||||||
':cool:' => 'cool.gif',
|
':cool:' => 'cool.gif',
|
||||||
':\'(' => 'crying.gif',
|
':\'(' => 'crying.gif',
|
||||||
|
':*(' => 'crying.gif',
|
||||||
|
':crying:' => 'crying.gif',
|
||||||
'>.>' => 'eyesright.gif',
|
'>.>' => 'eyesright.gif',
|
||||||
':frown:' => 'frown.gif',
|
':frown:' => 'frown.gif',
|
||||||
'<3' => 'heart.gif',
|
'<3' => 'heart.gif',
|
||||||
':unsure:' => 'hmm.gif',
|
':unsure:' => 'hmm.gif',
|
||||||
|
':\\' => 'hmm.gif',
|
||||||
':whatlove:' => 'ilu.gif',
|
':whatlove:' => 'ilu.gif',
|
||||||
':lol:' => 'laughing.gif',
|
':lol:' => 'laughing.gif',
|
||||||
':loveflac:' => 'loveflac.gif',
|
':loveflac:' => 'loveflac.gif',
|
||||||
@ -44,7 +47,7 @@ class TEXT {
|
|||||||
':creepy:' => 'creepy.gif',
|
':creepy:' => 'creepy.gif',
|
||||||
':worried:' => 'worried.gif',
|
':worried:' => 'worried.gif',
|
||||||
':wtf:' => 'wtf.gif',
|
':wtf:' => 'wtf.gif',
|
||||||
':wub:' => 'wub.gif'
|
':wub:' => 'wub.gif',
|
||||||
);
|
);
|
||||||
|
|
||||||
private $NoImg = 0; // If images should be turned into URLs
|
private $NoImg = 0; // If images should be turned into URLs
|
||||||
@ -373,7 +376,7 @@ function parse($Str) {
|
|||||||
$Block = preg_replace('/\[inlinesize\=5\](.*?)\[\/inlinesize\]/i', '===$1===', $Block);
|
$Block = preg_replace('/\[inlinesize\=5\](.*?)\[\/inlinesize\]/i', '===$1===', $Block);
|
||||||
$Block = preg_replace('/\[inlinesize\=7\](.*?)\[\/inlinesize\]/i', '==$1==', $Block);
|
$Block = preg_replace('/\[inlinesize\=7\](.*?)\[\/inlinesize\]/i', '==$1==', $Block);
|
||||||
|
|
||||||
$Array[$ArrayPos] = array('Type'=>$TagName, 'Val'=>$Block);
|
$Array[$ArrayPos] = array('Type'=>$TagName, 'Val'=>htmlspecialchars($Block)); // double escape
|
||||||
break;
|
break;
|
||||||
case 'hide':
|
case 'hide':
|
||||||
$Array[$ArrayPos] = array('Type'=>'hide', 'Attr'=>$Attrib, 'Val'=>$this->parse($Block));
|
$Array[$ArrayPos] = array('Type'=>'hide', 'Attr'=>$Attrib, 'Val'=>$this->parse($Block));
|
||||||
|
Loading…
Reference in New Issue
Block a user