Skip to content

HTML link in JSON #13522

@oliveskur

Description

@oliveskur

Description of the Issue

If link ends with escaped quote then remaining part of line is marked as invalid syntax but actually it passes any JSON parser.

Steps to Reproduce the Issue

  1. Create a new json file
  2. Paste following: {"html":"<a href=\"https://www.google.com\" target=\"_blank\">Google"}

Expected Behavior

It's correct syntax

Actual Behavior

target="_blank">Google"} is marked as invalid syntax (red background)

Debug Information

Notepad++ v8.5.2 (64-bit)
Build time : Apr 4 2023 - 19:55:32
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\Users\olive\OneDrive\Desktop\test.json"
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.2846
Current ANSI codepage : 1252
Plugins :
mimeTools (2.9)
NppConverter (4.5)
NppExport (0.4)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions