Made possible to use apostrophes to escape attribute values
Fixed declaration for when attribute does not exist.