postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.83k stars 839 forks source link

Postman Api Endpoint Documentation WYSWIG Editor does not work with XML #10756

Closed Toumash closed 2 years ago

Toumash commented 2 years ago

Is there an existing issue for this?

Describe the Issue

Cannot paste xml into the new wyswig documentation editor

Steps To Reproduce

  1. Open new request tab
  2. Give it a name
  3. Save it under some name
  4. Open up the documentation panel on the right
  5. Make sure you have WYSWIG beta editor opened not "classic markdown editor"
  6. Copy below xml into the system clipboard
<xml>sad-pepe.jpg</xml>
  1. Paste it into the documentation WYSWIG editor
  2. The text is gonna say "sad-pepe.jpg" instead of the whole xml

Screenshots or Videos

postman-wyswig-bug

Environment Information

- Operating System: Windows 10
- Platform Type: Native App
- Postman Version: 9.14.13

Additional Context?

No response

kamaraj-p commented 2 years ago

Hi @Toumash , thanks for reporting this issue. This is due to whitelisting of only specific tags due to security concerns. Will check with the security team regarding whitelisting xml tags and keep you posted.

Toumash commented 2 years ago

Oh, so you have some advanced copy&paste mechanism there? Then dont bother, the problem was originally with xml results from the endpoints, so no particular root element there, Impossible to whitelist If thats the case i would just close the issue.

The root cause is that i couldn't find and "code block" thing in the new editor, but its there.