Jump to content

Allowing HTML on short description of product list


jayb174

Recommended Posts

Hello,

I am using Prestashop 1.7.6.4 and I'm trying to add a HTML5 mp3 audio to a product so it shows up in the product list. However, when adding the html I get this error message in backoffice "The description_short field (English (English)) is invalid."

 

Is there a code that needs to be modified in order to be able use HTML in short descriptions?

 

Thank You

Link to comment
Share on other sites

I guess the audio tag is not recognized as valid "clean" html.
Have a look at the Validate class in classes/ isCleanHtml() method, and see if you are using anything that's banned there. If so, you can add an exception to the code.

Link to comment
Share on other sites

Thanks a lot, modifying the  /classes/Validate.php file worked and I can now use HTML5 in short description. Now the issue I have is with using a JPlayer to reproduce the mp3 sound. The player doesn't work and the web browser error is "Uncaught ReferenceError: jQuery is not defined" . Any idea what can be the error?

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...