This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

Code Error

This is for discussion, mainly on 1.x but there's some 2.x topics here too.

Code Error

by dfixtek » Tue Jan 21, 2014 7:12 pm


I need to find out if this is a bug or something else.

Can i put html code on the submit box?

Why i am asking this is because, some links with the html code are phrasing ok and others are not.

The ones that are not, it seems to be adding and extra <a href="

So it will look like this <a href="<a href='https://
When you click that link it comes up with an error.
If i go into the DB and remove the <a href=" it works ok.
Also what is strange its not putting an extra </a> in the DB code.

So does some code need to be removed from being added?
Can this be fixed?

Junior Member
Posts: 1
Joined: Tue Jan 21, 2014 6:54 pm

Re: Code Error

by mickburkesnr » Wed Oct 22, 2014 4:54 pm

I'm guessing the HTML code is coming from the database and it's stored as HTML?

In this case, and if you are using Twig, you can use "raw".


Code: Select all

This renders the output from the database in its rawest form, which can then be rendered as HTML. This is also useful to know if you are storing text in the database and you want to keep the formatting of it for display on the site.
Posts: 78
Joined: Mon Aug 22, 2011 12:33 pm
Location: Birmingham, UK