sanitizing scriptnode docs.