how can I get the contents of span ? I\'m looking for a way for all of this to be vanilla, not jQuery
javascript (and a little jQuery)
var swear_word
Give this a shot:
var input = document.getElementById("myInput"); var text = input.innerHTML;