WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

#46114 closed defect (bug) (duplicate)

Greater-than sign in image alt text is not quoted properly

Reported by: jikamens Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

If you put a greater than sign in the alt text of an image then it isn't quoted when the image is inserted into your posting as a block, with the result that it terminates the img tag and messes everything up.

Change History (2)

#1 @jikamens
3 years ago

I changed the greater than sign in the alt text to ">" and that didn't work either!

#2 @afercia
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

@jikamens thanks for your valid report. This is a known issue and it's already tracked in #45387 and in the Gutenberg GitHub repository, see https://github.com/WordPress/gutenberg/issues/9915 and https://github.com/WordPress/gutenberg/issues/12683. Please do feel free to follow #45387 and join the discussion there.

Note: See TracTickets for help on using tickets.