Announcements
How can I remove html tags from string in business Central,
When I fetch data from api, in my field I am getting html tags with text how can we remove it?
can you share some example? how you want?
Also I am not sure if we something to remove HTML tag from string, you can use STRSUBSTR or COPYSTR or DELSTR function to remove those tags from string.
You can go to your page also and write below statement onValidate of your text field.
currpage.TestWebsite.Setcontet(Yourtextfieldvalue)
Is the API returning html. Are you sure it is not returning XML?
I would check if you catch the correct response content from your HTML request.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
OussamaSabbouh 2,250 Super User 2026 Season 1
YUN ZHU 1,799 Super User 2026 Season 1
AndrewThomas81 1,390