Thread: tinymce bbcode
View Single Post
  #3  
Old 20th February 2021, 17:12
JohnHasher JohnHasher is offline
Coder
 
Join Date: Apr 2020
P2P
Posts: 62
Post
PHP Code:
function dehtml($content) {
  
$content=preg_replace('/&(?!(amp|[#0-9]+|lt|gt|quot|copy|nbsp);)/ix','&',$content);
  
$content=str_replace(array(' ','­','‍','‌','‭','‮'),'',$content);
  return 
str_replace(array('<','>','\'','"'),array('&lt;','&gt;',''','&quot;'),$content);


the code is getting filtered by bvlist editor , here is the function.


by the way parse is working for now except for the emotes / smilies (i think the unicodes are getting filtered.)

Bump: that line is getting filtered :(

Bump: line is getting filtered :(
Reply With Quote