Create htmlname attribute for tags (spaces replaced by %20 to get valid urls) instead of changing the id