Changes after feedback: removed unnecessary variable and content sanitizing