linweb Posted September 22, 2014 Share Posted September 22, 2014 When I use HTML in certain areas of whmcs admin (e.g. downloads description, product description, mail in payment instructions) and others, it displays as the raw HTML code on the front end, instead of actual format. For example if I enter this as a download description Windows utility for manipulating archives. Formats 7z, ZIP, GZIP, BZIP2 and TAR archives. <br /> (Windows x64) (11/18/2010) Version: 9.20 <br /> <a href="http://www.7-zip.org/" target="_blank" rel="external nofollow" class="new-win">http://www.7-zip.org/</a> Instead of actual line breaks and links, on the downloads.php page it prints out the raw html as above. This wasn't always the case. I have product descriptions that I haven't edited in a long time (several whmcs versions back) and the html is parsing as expected. Is there anything I can do to fix this? whmcs version 5.3.10, php 5.4.32, mysql 5.5.37 Thank you. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted September 25, 2014 WHMCS Support Manager Share Posted September 25, 2014 Hi, I can confirm this is now the intended behaviour; it's a security consideration to prevent potentially malicious HTML code being inserted and parsed inside the client area. As an alternative I suggest editing the /templates/*your active template*/viewinvoice.tpl and adding the code there directly. EG: {if $paymentmethod = 'banktransfer'}Please remit payment to<br/> <strong>Account Number:</strong> 0123456789<br/> <strong>Sort Code:</strong> 11-22-33<br/> {/if} 0 Quote Link to comment Share on other sites More sharing options...
merlinpa1969 Posted September 25, 2014 Share Posted September 25, 2014 I use a CMS page manager is this going to affect me as well, 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.