Hi,
I have a few questions that I searched the group for, but I couldn't find clear answers to:
When writing a plugin...
-- How do you render html code into a tiddler efficiently?I tried using
wikify(), but even when it succeeded in rendering html tags, it enclosed them in an unnecessary
span. I'm not looking to only render an empty element. I'm looking for how to render something with the content that goes within it.
For example:
someFunctionToRenderHTML("<span class="classname"><h1>Header</h1><br />Some text goes here.<br /></span>");
-- How do you render part of an html tag in one place and then part in another?
What if I wanted to render part of a
span before some code and then the closing tag to the span afterwards. For example:
<span class="someclass"> // render this individually
// code goes here
</span> // render this closing tag individually
Is there a way to do this?
I looked at existing plugins and just wasn't able to decode things. Any help that you could provide would be greatly appreciated!
Kind regards,
Hiru