Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Remove html tags from string in business Central

Posted on by 75

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?

Categories:
  • Suggested answer
    Inge M. Bruvik Profile Picture
    Inge M. Bruvik 32,720 Super User on at
    RE: Remove html tags from string in business Central

    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.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,991 Super User on at
    RE: Remove html tags from string in business Central

    You can go to your page also and write below statement onValidate of your text field.

    currpage.TestWebsite.Setcontet(Yourtextfieldvalue)

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 20,991 Super User on at
    RE: Remove html tags from string in business Central

    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.

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,513 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,862 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans