FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Help with regex
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Help with regex [message #184953 is a reply to message #184952] Wed, 19 February 2014 15:11 Go to previous messageGo to previous message
Christoph Michael Bec is currently offline  Christoph Michael Bec
Messages: 207
Registered: June 2013
Karma:
Senior Member
knal wrote:

> With regular HTML i meant basic HTML, submitted with basic
> WYSIWYG-features like links, basic text styles (b, i, u, etc.),
> images, some divs, etc. I understand this wasn't clear, sorry for
> that.

I assume you are aware of potential security issues wrt. user supplied
input containing markup.

> Regarding the RTFM: I've read on the regex, and also understood it's
> not intended for what I want to use it for. I've come here for help
> here because I was unable to find a similar situation which could aid
> me to my solution nor was i able to find any other method I could
> use.

Well, you can use a regex for this purpose, but you can also use PHP's
DOM extension[1], which is less prone to subtle errors.

And please don't top-post.

[1] <http://de3.php.net/manual/en/book.dom.php>

--
Christoph M. Becker
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Career Opportunities in Singapore (PHP Tech Lead)
Next Topic: PHP script to get name of file which houses the script?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 06:24:35 GMT 2024

Total time taken to generate the page: 0.05365 seconds