Jump to content

Code Being Displayed As Text


Guest Brivtech

Recommended Posts

Guest Brivtech

Can anyone help with this?

I'm using FCK editor as an additional input source in the same way that CC uses it. It also saves to the database in the same way.

The problem I'm having is that when I'm echoing the code back onto the web page, it displays all the HTML code tags, rather than acting on them, for instance:

First Line<br>Second Line

... where it should be:

First Line

Second Line

What's going on here?

Link to comment
Share on other sites

Guest EverythingWeb

Can you post an example of the whole block of code that's not rendering properly.

How are you echoing the HTML out?

CubeCart uses a method called writeHTML() or validHTML()

(Cant remember off top of my head).

Link to comment
Share on other sites

  • 2 weeks later...
Guest Brivtech

Sorry it took a while to get back to this, I've been a bit distracted.

Looks like you spotted the problem straight on! I was using validHTML, and deleting it fixed the problem. I popped it in there, because I was working around some related code:

   $view_doc->assign("DOC_NAME",validHTML($result[0]['doc_name']));

...which it obviously didn't need here.

Cheers and many thanks. :(

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...