@rafanetow you should not be editing the tags in the HTML.
In order to support accented names (or spaces, like in “Maria Jose”), you need to change two places: (1) the registration’s app.json file in your implementation config, and (2) the patient.nameValidationRegex advanced setting in OpenMRS.
This is documented on the wiki at: https://bahmni.atlassian.net/wiki/spaces/BAH/pages/32014595/Configure+Patient+Registration#ConfigurePatientRegistration-2.ConfigurationtoEnterPatientNameFieldsinMulti-language
You can also see the solution in this talk thread: Configuring Bahmni to allow for spaces in patient names