The Binary OrderMark(BOM) is the hidden secret code used for securing the data transfer via REST services. Commonly this BOM details available starting of each string(Commonly exist in first 3 characters). But will saving in Database or processing we no need this code. So we can strip from actual code.
The below is the sample code for strip a particular HTML element from given string HTML. Using this function we can able to get particular div, span, p, body, article,.. any HTML wrapped element by its class or id. This function accepts 4 parameters, HTML string to get particular Tag, Strip tag name, Identifier name Class or Id and Identifier Class name or Id name.
The below function will help us to Strip given HTML tag to strip from HTML string. In this function, we can able to pass the starting and ending tags of the specific string enclosed.