Hi @suyash87 ,
I am not certain I clearly understand where you are stuck as the_field does not add any markup to the field value.
Kindly share with us the code that you are using so that I may be able to understand and advise on the same.
Hope to hear from you soon.