PDF Template: print text from texteditor without HTML code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ManfredWinter
    Junior Member
    • Dec 2025
    • 7

    #1

    PDF Template: print text from texteditor without HTML code

    Hello everyone,

    I'm working with the PDF templates. In this template there should be printed the text of a texteditorfield from the entity. With my code:

    3.1.14 Description of products: {{cPartDescription}}

    the result is "<p>here is the description of the products</p>"

    how is it possible to print just the text of the texteditorfield without the html code?

    thank you very much
    kind regards
    Manfred
  • rabii
    Active Community Member
    • Jun 2016
    • 1364

    #2
    you need to use it like below to escape the html

    PHP Code:
    {{{cPartDescription}}} 
    Rabii
    EspoCRM & Web Dev

    🔗 See what I’ve built for EspoCRM

    Comment

    • ManfredWinter
      Junior Member
      • Dec 2025
      • 7

      #3
      hello rabii

      very nice, that is working! thank you a lot!

      kind regards
      Manfred

      Comment


      • rabii
        rabii commented
        Editing a comment
        You are welcome
    Working...