FLAASHER
asked on
remove format from text
Hello experts ....
i have a PHP site that display news
some times my client copy and paste news from news site ..... so he copy formated test and paste it in the text area in the form i made to him to insert news into Data base
my question is :
1- if he entered formated test into the data base .... can i disply this formated text without formt ?? coz i take the frist 400 characters from the last new and display it in the home page and i want to display it without format
2- is it possiple to remove format when the Admin press insert button in the insertion form ??
Thanks
FLAASHER
i have a PHP site that display news
some times my client copy and paste news from news site ..... so he copy formated test and paste it in the text area in the form i made to him to insert news into Data base
my question is :
1- if he entered formated test into the data base .... can i disply this formated text without formt ?? coz i take the frist 400 characters from the last new and display it in the home page and i want to display it without format
2- is it possiple to remove format when the Admin press insert button in the insertion form ??
Thanks
FLAASHER
can you post an example of what you want and don't want?
ASKER
the user copy this line from another site :
" this is sample text of the admin copy and paste "
But becuse i provided him with rich text era format when he copy and paste the text into the insertion form the text inserted into the data base as following :
this is <span class="style5">sample text </span>of the <strong>admin copy a</strong>nd paste
i diplay this text in the home page and i need to display it without any format ..... i want it just a plain text .... want to display it like this :
" this is sample text of the admin copy and paste "
FLAASHER
" this is sample text of the admin copy and paste "
But becuse i provided him with rich text era format when he copy and paste the text into the insertion form the text inserted into the data base as following :
this is <span class="style5">sample text </span>of the <strong>admin copy a</strong>nd paste
i diplay this text in the home page and i need to display it without any format ..... i want it just a plain text .... want to display it like this :
" this is sample text of the admin copy and paste "
FLAASHER
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
i want to remove all HTML tags ...... not only <stong> and <span>
<stong> and <span> just fro example
FLAASHER
<stong> and <span> just fro example
FLAASHER
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Dear jk2001
Many thanks
can u please explain this line to me ??
FLAASHER
Many thanks
can u please explain this line to me ??
FLAASHER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks all
angelIII provide me with the best answer
FLAASHER
angelIII provide me with the best answer
FLAASHER