Forum


Replies: 5   Views: 7724
Php tidy alternative?
Topic closed:
Please note this is an old forum thread. Information in this post may be out-to-date and/or erroneous.
Every phpdocx version includes new features and improvements. Previously unsupported features may have been added to newer releases, or past issues may have been corrected.
We encourage you to download the current phpdocx version and check the Documentation available.

Posted by iTiZZiMO  · 29-10-2013 - 16:13

Hi,



we´re running a nginx server and we´re having a pain with installing tidy on it. is there an alternative to php tidy?


Posted by jorgelj  · 29-10-2013 - 16:36

Hello,



What OS are you using?



Regards.


Posted by iTiZZiMO  · 29-10-2013 - 17:29

We´re running a Debian x64. We need Tidy for the replaceTemplateVariableByHTML() function. It´s working superbe locally, but our administrator said, it would take a looong time to get it working on our live server and it wouldn´t be accepable for our customers.



So it would be very nice, if we could tell phpdocx to use something different than tidy.


Posted by jorgelj  · 30-10-2013 - 11:27

Hello,



You can avoid using Tidy if the HTML is clean. This is that all tags must be closed, there must exist no blank space between tags or line breaks ('\n') and the HTML must pass XHTML validation.



I think i'ts shorter to install Tidy.



Regards.


Posted by iTiZZiMO  · 30-10-2013 - 12:20

But the problem is (was), that phpdocx is trying to create a new tidy object, when using that function. so i think it´s kinda mandatory to install that. btw: our admin did some voodoo over night and tidy´s running now^^



thank you all for your help anyway!



 



regards