Fixed issue with rendering attributes with code in them