|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hi,
has anyone here tried parsing HTML code to XHTML with PHP? I'm working on a CMS prog and the javascript's execCommand -function writes some awful HTML. So, I'm trying to clean it up to be a bit more valid... Has anyone found any tutorials, just to save me some time of doing it all by myself... ![]() |
|
#2
|
|||
|
|||
|
anyone...?
I bet someone has seen something like it or...? |
|
#3
|
||||
|
||||
|
How exactly did you want to return the Javascrip to the PHP parser? Javascript is client side, php server side.
Mind, I'm not that good at JS, so I may be misunderstanding here. |
|
#4
|
|||
|
|||
|
Quote:
No need to nibble with javascript. The idea is to parse the produced html -code (which is saved in a database) when finished with the wysiwyg -editing. ![]() |
|
#5
|
|||
|
|||
|
I actually found a PHP -extension called tidyHTML. I haven't tried it yet, so I don't know if it works.
Anyone have any experience in tidyHTML w/ php? |
![]() |
| Viewing: Dev Articles Community Forums > Programming > PHP Development > Parsing HTML to XHTML with PHP? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|