Zak Lewis
Zak Lewis

Reputation: 31

OpenCart HTML adds quotes

I'm having weird issues with the HTML in the information page. Any HTML I type has \" added to the left and right so the following iframe would turn to this:

Before:

<iframe src="http://www.google.com/"></iframe>

After:

<p><iframe src="\&quot;http://www.google.com/\&quot;"></iframe></p>

OpenCart Version: 1.5.5.1

Upvotes: 0

Views: 907

Answers (3)

Roman Bootko
Roman Bootko

Reputation: 11

create file at root with dots: .user.ini put this:

magic_quotes_gpc = Off

and then save

Upvotes: 1

Zak Lewis
Zak Lewis

Reputation: 31

I managed to fix this issue by forcing the magic_quotes off in .htaccess:

<IfModule mod_suphp.c>
suPHP_ConfigPath /home/user/public_html
</IfModule>

Upvotes: 0

rjdown
rjdown

Reputation: 9227

You are typing your code directly into the WYSIWYG side of the editor. This will escape all the html entities like you are seeing.

All you need to do is hit the "Source" button, and put your HTML into this view instead.

enter image description here

Upvotes: 0

Related Questions