I went looking for a J library routine which properly quotes its
argument, and found the (require 'convert') 'quote' verb.

While looking for it, I also stumbled across enquote from
~system/packages/publish/web.ijs which is used for quoting
HTML attributes.

(This is on a machine with J's package manager installed,
though this file does not seem to belong to one of its
packages.)

Anyways, I noticed that enquote does not properly deal with
nested quotes.  I believe that they should be converted to
character entities.  This means that proper usage should
probably look something like
   enquote@(entities inv)

I don't know of a general way of locating such information,
so I thought I'd mention it here.

FYI,

-- 
Raul
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to