2 Replies - 247 Views - Last Post: 14 May 2013 - 04:03 PM Rate Topic: -----

#1 seyidesh  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 51
  • Joined: 24-November 10

WYSIWYG Error

Posted 14 May 2013 - 10:46 AM

Hello guy, I am a new php learner I am having a small challenge with wysiswyg, After sending a post through WYSIWYG editor, the HTML tag is appearing on the post making the post to look like this;

hello<font color="#993300"> <b>ma</b></font><img src="http://i.imgur.com/qsk1FmP.jpg" width="226">

How can i remove the html tags from the post and make MY POST appear normally as i have specify in the WYSIWYG?

Thanks

Is This A Good Question/Topic? 0
  • +

Replies To: WYSIWYG Error

#2 no2pencil  Icon User is online

  • Dic Head
  • member icon

Reputation: 5163
  • View blog
  • Posts: 26,834
  • Joined: 10-May 07

Re: WYSIWYG Error

Posted 14 May 2013 - 10:47 AM

A quick & dirty way would be to use the php function strip_tags().
Was This Post Helpful? 0
  • +
  • -

#3 seyidesh  Icon User is offline

  • D.I.C Head

Reputation: -1
  • View blog
  • Posts: 51
  • Joined: 24-November 10

Re: WYSIWYG Error

Posted 14 May 2013 - 04:03 PM

View Postno2pencil, on 14 May 2013 - 10:47 AM, said:

A quick & dirty way would be to use the php function strip_tags().


strip_tags() is removing all the html tag from the post making it look as if i have not apply wysiwyg editor at all.

What i want is to be able to display the WYSIWYG effect as i have applied it. But what am getting is the raw code of the effect from WYSIWYG looking like: I don <font color="#660066"><font size="6">Port</font> </font>oooo instead of giving me something like this: I don Port oooo
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1