Like the title says, you can't use apostrophes in ingredient names. It makes it hard to specify Kellog's Rice Krispies or Fry's Cocoa.
It gives the error: "Ingredient names must be plain text."
Like the title says, you can't use apostrophes in ingredient names. It makes it hard to specify Kellog's Rice Krispies or Fry's Cocoa.
It gives the error: "Ingredient names must be plain text."
Comments
Comment #1
csc4 commentedCan't use double quotes either - which are sometimes used as an abbreviation for inch
Comment #2
Freso commentedThis happens on line 963:
and is due to the fact that
check_plain()actually converts the text so that$ingredient->namein many cases will be renamed.A work-around could be to strip off ' and " before running through
check_plain()(and on the other side of the!=as well, of course), though there are probably better means.Comment #3
nancydruYes, it makes it hard to even specify brand names at all. Try escaping the apostophe (use \').
Comment #4
marble commentedTurns out we don't really need that check at all. I've removed it now (in 4.7, 5.x and HEAD).
Comment #5
(not verified) commented