Mysterious Javascript showing up & trashing page

Well I don’t see anything wrong with that bit of HTML, so the problem could stem from a lot of places. It sounds like cross site scripting of some sort, but it’s hard to tell just from the description. It could be a bug with the web app. Tell the developers to look into it, as there’s nothing wrong with what you’re inputting.