I have a view that returns JSON-serialized content. When there is a link to a file embedded in the content, the response includes the embedded file as tag, rather than regular HTML. My front-end app is loading the JSON response directly into the DOM, so a link to the file is obviously not appearing.

How can I modify the JSON response so that it presents a link to the file in regular HTML? Thanks.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.