573
edits
("support" for highlighted words from phpBB search) |
(phpBB smilies support) |
||
Line 90: | Line 90: | ||
escapePipes(), | escapePipes(), | ||
a2wikilink(), | a2wikilink(), | ||
phpBB_smilies2text(), | |||
img2link(), | img2link(), | ||
phpBB_fontstyle2wikistyle(), | phpBB_fontstyle2wikistyle(), | ||
Line 211: | Line 212: | ||
return bbhtml.replace(/<blockquote.*?><div>(?:<cite>.*?<\/cite>)?(.*?)<\/div><\/blockquote>/g, "{{cquote|$1}}"); | return bbhtml.replace(/<blockquote.*?><div>(?:<cite>.*?<\/cite>)?(.*?)<\/div><\/blockquote>/g, "{{cquote|$1}}"); | ||
}; | }; | ||
} | |||
// converts smilies images from phpBB. | |||
// Must be used BEFORE img2link(), because it makes a broken link of them | |||
function phpBB_smilies2text() { | |||
return function(bbhtml) { | |||
return bbhtml.replace(/<img.*?src="\.\/images\/smilies\/icon_.*?\.gif".*?alt="(.*?)".*?>/g,"$1"); | |||
} | |||
} | } | ||
edits