![]() ![]() |
Jul 19 2012, 12:39 PM
Post
#1
|
|
![]() Web Design Seo ![]() ![]() ![]() ![]() Group: Root Admin Posts: 4,332 Joined: 29-April 09 From: Sofia Member No.: 1 |
Currently PBM works with the text/html version of the message, if present, and with the text/plain one, if not. As a result HTML entities as , <, >, etc. may be posted as part of the forum message. The Strip HTML Tags setting does not help as it leaves the HTML entities intact. To solve this problem you can do the following: 1) Set the content type of your mail client to text/plain. And / or: 2) Open: Код /components/com_post_by_email/controller.php and search for the follwoing code (should be around line 521, depending on the PBM version): Код if ($parser_params['strip_tags']) $content = empty($parser_params['allowed_tags']) ? strip_tags($content) : strip_tags($content, $parser_params['allowed_tags']); $GLOBALS['article']['content'] = trim($content); Replace it with: Код if ($parser_params['strip_tags']) { $content = empty($parser_params['allowed_tags']) ? strip_tags($content) : strip_tags($content, $parser_params['allowed_tags']); $content = html_entity_decode($content, ENT_QUOTES, $charset); } $GLOBALS['article']['content'] = trim($content); The code above translates the HTML entities in plain text in addition to stripping the HTML tags when the Strip HTML Tags setting is enabled. -------------------- Правила на форума | Forum Rules | How to receive support. 3D Web Design: Уеб дизайн, Seo оптимизация, Web Site Extensions, Oscommerce Addons, Wordpress plugins and Joomla Extensions. Изработка на уеб сайтове и оптимизация на сайт за търсачки и Seo услуги.
|
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 1st June 2026 - 10:12 PM |