/    Sign up×
Community /Pin to ProfileBookmark

RichText -HTML code output

What is the best way, I can output html code in php?
For instance, if a user writes a blog with a rich text editor(an example is the one am using on now), what best way can I output image as to be display and link as to be target to _blank and tags like <table width =”10000″. should be disabled.

Any scope?
Thanks.

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@itbeingsauthorJun 19.2007 — Anyone know this?
Copy linkTweet thisAlerts:
@TJ111Jun 19.2007 — I'm not exactly sure what you asking, but if you want to have all links have target="blank" your best bet might be javascript. [url=http://www.sitepoint.com/article/standards-compliant-world/3]Example[/url].

I'm not sure what your other questions are about. If your running a forum or a blog why not use phpBB or wordpress or something similar?
Copy linkTweet thisAlerts:
@itbeingsauthorJun 20.2007 — It's not about doing blogging page this time nor do I want all links to be open to another page. All I want is that if a user add am image link or URL, I want it to display the image and the link so that when the link is clicked, it will open a new window.
×

Success!

Help @itbeings spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...