Developed for producing short descriptions from text that may have markup, or other stuff that needs removing from short descriptions.

Code
'''[[Foo|hah]]'''<sup>e</sup> <span style="color:red">is</span> '''''[[gah]]'''''<nowiki>?</nowiki>
hahe is gah?
Using සැකිල්ල
{{#invoke:Plain text|main|1='''[[Foo|hah]]'''<sup>e</sup> <span style="color:red">is</span> '''''[[gah]]'''''<nowiki>?</nowiki>}}
hah is gah
"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:Plain_text/doc&oldid=678566" වෙතින් සම්ප්‍රවේශනය කෙරිණි