How to display HTML tags in DOCman's descriptions?

DOCman allows to write document's descriptions with the WYSIWYG editor and uses and saves correctly the HTML tags. However DOCman removes all the HTML tags when it displays the files description in the frontend. Here we the solution for this situation.

Edit the file joomla_root/administrator/components/com_docman/classes/DOCMAN_model.class.php at line 215 you'll find this code:

$this->objFormatData->dmdescription     = mosHTML::cleanText($objDBDoc->dmdescription);

To fix this behavior change the code to:

$this->objFormatData->dmdescription     = $objDBDoc->dmdescription;

This is a modified solution of the one posted by cybergurk at the joomlatools.com forum

Please read our Refund Policy in order to know the details of our Money Back Guarantee
Please read our Refund Policy in order to know the details of our Money Back Guarantee

Member Login

PayPal

Share your experience

Have you had a good experience with our Joomla! Extensions? Send us your testimonial and any URL you want to link, and if your comment is published, then we'll gladly place a link to your site an appropriate page.
You are here: Home Blog How to display HTML tags in DOCman's descriptions?

Business Oportunity

Affiliates ProgramWant to earn a new revenue stream? Join our Affiliate program today! For each purchase you generate, you receive a huge percentage of the sale price.

ROALCANA's Blog

Our blogDo visit our blog, where we continue to provide useful tips and handy hints to use, customize and develop Joomla on your websites.
Go to blog

Trademark Disclaimer

Product names, logos, brands, and other trademarks referred to within roalcana.com are the property of their respective trademark holders. These trademark holders are not affiliated with Roalcana, our products, or our website. They do not sponsor or endorse any of our solutions.