Jeremy, thank you for your reply.

I came up with the following thanks to Jeremys input which allows a user to 
call a macro with some tiddlers text as argument na dhave it uri-encoded 
and sandboxed (iframed). This allows for simple <b>html-styling</b> but not 
css:


tags: $:/tags/Macro

\define iframed() <iframe sandbox seamless height="100%" style="width: 
100%; border:0;" src="""$(uri)$"""></iframe>

\define getiframe(itype arg)
<$set name="uri" value=<<makedatauri """$arg$""" "text/$itype$">>>
<<iframed>>
</$set>
\end

\define sandbox(content itype:"html")
<$macrocall $name="getiframe" itype="$itype$" arg="""$content$"""/>
\end


Interestingly, using iframe with srcdoc - as I'm doing here 
<http://quicktid.tiddlyspot.com/#Sandbox_srcdoc%20with%20raw%20text%20data>does 
seem to allow css styling -  *does this mean it doesn't funciton as a 
sandboxing iframe*?

<:-)

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/bca718ed-cafd-4dfb-b55a-ce3631604c77%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to