If I give this string to domparser's parsefromsring
'<input type="text" id="username" name="username" required>'
Then it converts the required attribute of above string to (required="")
Same happen if I use toHTML function while converting objects to HTML
Is there any way to avoid this? I will be grateful to you if you have any solution for this.
I digged down everything on the internet, but unable to get the solution.