fix: if user didn't set id or class, then it won't be displayed in HTML code