Fork me on GitHub

interpreting HTML inside lang defines? SOLVED  Bottom

  • In a module template, I am trying to display HTML using something like the following:

    Code

    from eng/admin.php
    <?php

    define('_EXPLANATION','<strong>READ THE READ ME, the LICENSE and the ANNOUNCEMENT</strong><br />');

    ?>


    Code

    from pntemplates/example_admin_view.htm

    <!--[pnml name="_EXPLANATION"|pnvarprephtmldisplay]-->


    but the HTML is not interpreted and displayed. It comes out as:

    Code

    <strong>READ THE READ ME, the LICENSE and the ANNOUNCEMENT</strong><br />


    yes - I have both the "strong" tag and the "br" tag enabled (without attributes) in the settings.

    why isn't this working?
  • Add the HTML=1 parameter to the pnml tag:

    Code

    <!--[ pnml name='_EXPLANATION' html=1 ]-->


    The pnvarprephtmldisplay modifier is not needed, this is done by pnml by looking at the HTML parameter icon_smile

    --
    "He is not dangerous, he just wants to play...."
  • thank you - that worked nicely!

This list is based on users active over the last 60 minutes.