Forum


Replies: 2   Views: 3362
Embedhtml: lists & <p> tags not rendering on templates?
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 coconnor  · 18-12-2016 - 18:40

Hello-

Running into an odd issue. I'm attemping to have embedHTML render some HTML on a docx template, but I don't see the lists or paragraphs being rendered.

  • I DO see PHPDocx's example code working fine on my machine (phpdocx/examples/Core/embedHTML/sample_1.php)
  • I DO see some HTML formatting being rendered via the template-oriented code. Tags like <em> and <b> work fine. Just not <p> or  <ul>/<li>.
  • If I copy the example HTML from sample_1.php & pasted it into my template-oriented code, I still don't see <p> or <ul>/<li> tags getting rendered. (In other words, I don't think it's an HTML formatting/encoding issue on my end.)

Is there an option I need to enable? Maybe there's another step I am missing?

Thanks for your help.