when making a post and using <pre> and <code> tags, it is displaying incorrectly on the front end if I add href="#" in the code block.
So in the FAQ post in Admin click on the code button, enter my code. When I view the source code, everything looks correct. When I view the post on the front in, it replaces my # with the url of my sight with the # at the end.
I have attached 3 images, image 1 and 2 show what it looks like on the admin side and image 3 is what it looks like on the front end.
Can someone tell me how to fix this so it shows correctly on the front end?
Thanks
Tommy
Code Sample/Block Issue
Moderator: Thorsten
Code Sample/Block Issue
You do not have the required permissions to view the files attached to this post.
Re: Code Sample/Block Issue
Hi,
this is a 10 year old hack which doesn't work any more as it seems. Please try to remove these lines:
https://github.com/thorsten/phpMyFAQ/bl ... #L106-L116
bye
Thorsten
this is a 10 year old hack which doesn't work any more as it seems. Please try to remove these lines:
https://github.com/thorsten/phpMyFAQ/bl ... #L106-L116
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Code Sample/Block Issue
removing those lines in the php file made the whole post disappear. However, I just modified the sprintf to be href="#' and that took care of the issue. Thanks for you help. Great product.
Re: Code Sample/Block Issue
Hi,
thanks for the feedback, I'll remove the broken code.
bye
Thorsten
thanks for the feedback, I'll remove the broken code.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist