Parse CFML tags in PHP

前端 未结 1 1941
鱼传尺愫
鱼传尺愫 2021-01-16 08:14

Background:

I have been running a site on the blogger platform for the past 5 years. I was using the option of hosting the site on my own server, p

相关标签:
1条回答
  • 2021-01-16 08:49

    Right now I'm leaning towards the Custom Tags library mentioned in this post as the answer. One of the best features is support for buried or nested tags like the code block below:

    <ct:upper type="all">
        This text is transformed by the custom tag.<br />
        Using the default example all the characters should be made into uppercase characters.<br />
        Try changing the type attribute to 'ucwords' or 'ucfirst'.<br />
        <br />
        <ct:lower>
            <strong>ct:lower</strong><br />
            THIS IS LOWERCASE TEXT TRANSFORMED BY THE ct:lower CUSTOM TAG even though it's inside the ct:upper tag.<br />
            <BR />
        </ct:lower>
    </ct:upper>
    

    I highly recommend downloading the zip file and looking through the examples it contains.

    0 讨论(0)
提交回复
热议问题