← Back to team overview

phpns-team team mailing list archive

Re: [Question #38968]: How to encode for articles before save it to database

 

Question #38968 on phpns changed:
https://answers.launchpad.net/phpns/+question/38968

    Status: Answered => Open

adam is still having a problem:
Because phpns used TinyMCE for editor, so when you format article_text
or insert images from TinyMCE then it always save in database with your
HTML Tags and text.

example if see in database:

----------
<p align="justify">
<img src="upload/images/03_copy_400.jpg" alt="03_copy_400" width="159" height="111" align="left" />It's such grief and aggravation," said Frederick Smalls, an insurance
broker in Whitman, Massachusetts, after spending two hours on the phone
with Apple and AT&T Inc., trying to get his new iPhone to work.
</p>
<div align="justify">
</div>
<p align="justify">
In stores, people waited at counters to get the phones activated, as
lines built behind them. Many of the customers had already camped out
for several hours in line to become among the first with the new phone 
</p>
------------

then if your search keyword equal "align="  it will be return result is true  (FOUND)
but it's HTML tag for formated the article.

-- 
You received this question notification because you are a member of
Phpns-team, which is an answer contact for phpns.