WordPress.org

Make WordPress Core

#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:
PR Number:

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
10 months ago

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

#2 @afercia
10 months 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.