Elby Posted July 4, 2014 Share Posted July 4, 2014 Hi guys! I am quite new to Prestashop but today I am facing a real strange problem: Whenever I put a link into the content of my CMS page, no matter if done with the "add link" button or manually, the target (should be _blank) is deleted, so if a user will click the link, the page is opened in the same window, which is definitely not what I want. Tried it with my own template and with the default template, same effect. Actually I can even see it in the backend, when I check the code after saving the content, the target is already removed from the link. I am using the Prestashop version 1.6.0.8 Any ideas what I am doing wrong? Greetings Elby 1 Link to comment Share on other sites More sharing options...
RhysGoodwin Posted July 28, 2014 Share Posted July 28, 2014 Hi, I'm having the same issue. Also on 1.6.0.8. Link to comment Share on other sites More sharing options...
RhysGoodwin Posted August 14, 2014 Share Posted August 14, 2014 Okey I found a workaround. Disable HTML purifier in General preferences. Save your Content, then turn it back on. 2 Link to comment Share on other sites More sharing options...
Janeta Posted October 8, 2014 Share Posted October 8, 2014 (edited) Have the same problem, thanks for the workaround! It will do for now but there must be a better way to do this. I don't see why things like target should be removed... is that not pure enough? Edited October 8, 2014 by Janeta (see edit history) Link to comment Share on other sites More sharing options...
Sacha FROMENT Posted December 12, 2014 Share Posted December 12, 2014 Hello, It has been fixed a there is a long time ago The best way to fix your problem will be to take the function purifyHTML in this class https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Tools.php#L3245-L3309 Best regards. 3 Link to comment Share on other sites More sharing options...
clawban Posted December 25, 2014 Share Posted December 25, 2014 Hello, It has been fixed a there is a long time ago The best way to fix your problem will be to take the function purifyHTML in this class https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Tools.php#L3245-L3309 Best regards. Thx sir Link to comment Share on other sites More sharing options...
heyho Posted April 10, 2015 Share Posted April 10, 2015 (edited) Sry! Wrong topic.. but similar... https://www.prestashop.com/forums/topic/381550-how-to-bypass-cms-htmp-parser/ Edited April 10, 2015 by heyho (see edit history) Link to comment Share on other sites More sharing options...
chosie Posted February 1, 2016 Share Posted February 1, 2016 (edited) Hello, It has been fixed a there is a long time ago The best way to fix your problem will be to take the function purifyHTML in this class https://github.com/PrestaShop/PrestaShop/blob/1.6/classes/Tools.php#L3245-L3309 Best regards. Tested and work like a charm in v1.6.0.8. Thanks Sacha FROMENT Edited February 1, 2016 by kckok (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now