# Keycloak Edit profile is accepting special characters like HTML tags \<\>

**URL:** <https://forum.keycloak.org/t/keycloak-edit-profile-is-accepting-special-characters-like-html-tags/29848>\
**Category:** Miscellanaeous\
**Tags:** account-rest, admin-console\
**Created:** [April 3, 2025, 10:29am UTC](https://forum.keycloak.org/t/keycloak-edit-profile-is-accepting-special-characters-like-html-tags/29848 "2025-04-03T10:29:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Akshay64](https://avatars.discourse-cdn.com/v4/letter/a/a9a28c/32.png) [@Akshay64](https://forum.keycloak.org/u/Akshay64)\
**Post date:** [April 3, 2025, 10:29am UTC](https://forum.keycloak.org/t/keycloak-edit-profile-is-accepting-special-characters-like-html-tags/29848/1 "2025-04-03T10:29:54Z")

</div>

Hi,

We are trying to edit the user profile from our application. We have put validation of special characters like html tag in our keycloak theme and it is working properly if somebody is trying to save the request from keycloak theme page.  
But  
we are facing one issue, if somebody intercept this request and add special characters from backend than keycloak server is accepting special characters in First Name and Last Name.  
How we can block this at keycloak server level.

 ![keycloak-special-character](https://global.discourse-cdn.com/free1/uploads/keycloak/original/2X/6/6fb5f0145240277fffdcaafd5221a157029c73d8.png)
