Board Thread:Support Requests - Getting Technical/@comment-25523075-20151121112619/@comment-1757994-20151122101157

PhilippL wrote: That part will work, because jQuery is included in every MediaWiki wiki since MW 1.17.

PhilippL wrote: That part will not work, because there's no such thing as an  tag.

If you're really hell-bent on using that particular piece of code, rewrite it as ...  $(document).ready(function {      $(".eg").replaceWith("" + $(".eg").html + " "); }); ... or even better, since jQuery provides a method to do that ...  $(document).ready(function {      $(".eg").wrap(" "); }); ... which is probably what you really want. I don't think .html does what you think it does, which would be pretty obvious if you have more than one '.eg' element on the page.

In any case, then put ...  My text ... on your page, or use a  if you like them better. is the important part.