Fix post content parsing, avoid adding class parameter unless needed