I have a large string with HTML tags which is store in mongodb.
Now I only want replace the maxlength value.
Using Jquery It's easy way to do this by $(string) you will get html object and before update in database we can use .html() but how we can do this in NodeJs.
<textarea maxlength="20" class="form-control component_label_input" data-component_html="true" data-component_name="attributes" data-component_attribute="script" rows="5">
Any help would be really appreciated.
Thanks in Advance.