Html Encode String Javascript Functions And Parameters In Python