[PR #3079] [MERGED] feat: prettify XML response #4216

Closed
opened 2026-03-17 01:46:27 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hoppscotch/hoppscotch/pull/3079
Author: @nivedin
Created: 5/25/2023
Status: Merged
Merged: 5/30/2023
Merged by: @AndrewBastin

Base: release/2023.4.4Head: fix/prettify-xml-response


📝 Commits (1)

  • ca54c84 feat: prettify XML response

📊 Changes

5 files changed (+60 additions, -63 deletions)

View changed files

📝 packages/hoppscotch-common/package.json (+1 -0)
📝 packages/hoppscotch-common/src/components/http/RawBody.vue (+6 -21)
📝 packages/hoppscotch-common/src/composables/codemirror.ts (+23 -1)
📝 packages/hoppscotch-common/src/helpers/curl/sub_helpers/contentParser.ts (+7 -33)
📝 pnpm-lock.yaml (+23 -8)

📄 Description

Closes #3066
Closes HP-26

Description

This PR adds the feature to prettify the XML response.

Before

image

After

image

Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

Additional Information

I have used xml-formatter for pretty print the XML.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hoppscotch/hoppscotch/pull/3079 **Author:** [@nivedin](https://github.com/nivedin) **Created:** 5/25/2023 **Status:** ✅ Merged **Merged:** 5/30/2023 **Merged by:** [@AndrewBastin](https://github.com/AndrewBastin) **Base:** `release/2023.4.4` ← **Head:** `fix/prettify-xml-response` --- ### 📝 Commits (1) - [`ca54c84`](https://github.com/hoppscotch/hoppscotch/commit/ca54c8498c003c5d10c5890a7888267e3462463c) feat: prettify XML response ### 📊 Changes **5 files changed** (+60 additions, -63 deletions) <details> <summary>View changed files</summary> 📝 `packages/hoppscotch-common/package.json` (+1 -0) 📝 `packages/hoppscotch-common/src/components/http/RawBody.vue` (+6 -21) 📝 `packages/hoppscotch-common/src/composables/codemirror.ts` (+23 -1) 📝 `packages/hoppscotch-common/src/helpers/curl/sub_helpers/contentParser.ts` (+7 -33) 📝 `pnpm-lock.yaml` (+23 -8) </details> ### 📄 Description Closes #3066 Closes HP-26 ### Description This PR adds the feature to prettify the XML response. #### Before ![image](https://github.com/hoppscotch/hoppscotch/assets/53208152/f1cc5695-c53d-4fdf-b413-8bb32eeab021) #### After ![image](https://github.com/hoppscotch/hoppscotch/assets/53208152/6d6b4270-a8c9-4108-bf8c-7d171e63bec3) ### Checks - [x] My pull request adheres to the code style of this project - [ ] My code requires changes to the documentation - [ ] I have updated the documentation as required - [x] All the tests have passed ### Additional Information I have used [xml-formatter](https://www.npmjs.com/package/xml-formatter?activeTab=readme) for pretty print the XML. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-17 01:46:27 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#4216
No description provided.