Having upgraded from 1.38a to 1.39g on Friday I discovered that the news and article mod was not working correctly. Specifically the html editor was displaying text as raw HTML code.
There is a thread about this general issue here:
http://www.zen-cart.com/forum/showthread.php?t=165081
Although this is not specific to solving the problem in news and article manager I resolved the problem by adding the two relevant inputs for the news and article mod. Here is my code for this new file which solves the HTML problem for define pages as recommended by Dr Byte and my fix for the news and article mod:
Just to let anyone know who is also struggling with source HTML in the news and article manager i added to the suggested file in this thread two inputs from this mod so my file reads as follows:
PHP Code:
<?php
$global_xss_whitelist = isset($global_xss_whitelist) ? $global_xss_whitelist : array();
$my_whitelist = array('file_contents', 'banners_html_text', 'pages_title', 'message_html','news_article_text','news_article_shorttext','comments_text');
$global_xss_whitelist = array_merge($my_whitelist, $global_xss_whitelist);
Bookmarks