Jump to content

Showing raw HTML code instead of parsing?


linweb

Recommended Posts

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.

Link to comment
Share on other sites

  • WHMCS Support Manager

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}

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated