Skip to content

JSON files are evaluated #236

@iw0nderhow

Description

@iw0nderhow

Describe the bug

Opening a raw JSON file results in the display of [object Object].

To Reproduce
Steps to reproduce the behavior:

  1. Create a file with {} as its content
  2. Open it with Text
  3. Experience bug

Expected behavior
JSON is displayed as plain text.

Screenshots
Content in former editor:
Screenshot
Content in Text:
Screenshot
Client details:

  • OS: Windows 10 1809
  • Browser: Chrome
  • Version: 76
  • Device: Desktop
Server details

Text app version: 1.0.2

Operating system: Armbian Stretch

Web server: Apache2 2.4.25

Database: MariaDB 10.1.38

PHP version: 7.3.7

Nextcloud version: 16.0.3

Logs

Nextcloud log (data/nextcloud.log)

No log entries

Browser log

The escapeHTML library is deprecated! It will be removed in nextcloud 19.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions