REST API removes HTML markup from plain text MLoT

%3CLINGO-SUB%20id%3D%22lingo-sub-1753818%22%20slang%3D%22en-US%22%3EREST%20API%20removes%20HTML%20markup%20from%20plain%20text%20MLoT%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1753818%22%20slang%3D%22en-US%22%3E%3CP%3EThere%20is%20an%20MLoT%20field%2C%20set%20as%20Plain%20Text%20(not%20enhanced%20not%20RTF)%2C%20that%20is%20retrieved%20using%20REST%20api%20ajax%20call.%26nbsp%3B%3C%2FP%3E%3CP%3EThe%20data%20actually%20contains%20%22%26lt%3B%20a%20href%3D%22https%3A%2F%2F...%20etc%22%26gt%3BThis%20website%26lt%3B%20%2F%20a%20%26gt%3B%22%2C%20but%20when%20the%20REST%20data%20is%20returned%2C%20the%20HTML%20markup%20tags%20are%20removed.%26nbsp%3B%20So%2C%20in%20the%20example%20above%20only%20%22This%20website%22%20gets%20returned.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EIs%20it%20possible%20to%20return%20ALL%20of%20the%20text%20from%20the%20field%2C%20without%20getting%20the%20%26lt%3B%20a%20%26gt%3B%20%26lt%3B%20%2F%20a%20%26gt%3B%20stripped%20of%20it%3F%26nbsp%3B%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.easy-bins.com%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESteve%20Clark%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1753818%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EHTML%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMarkup%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EREST%20API%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3Etags%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Highlighted
Visitor

There is an MLoT field, set as Plain Text (not enhanced not RTF), that is retrieved using REST api ajax call. 

The data actually contains "< a href="https://... etc">This website< / a >", but when the REST data is returned, the HTML markup tags are removed.  So, in the example above only "This website" gets returned. 

 

Is it possible to return ALL of the text from the field, without getting the < a > < / a > stripped of it?  

 

Steve Clark

 

0 Replies