🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1975

Re: Adding Bookmarks

#1975
From: jongware
Date: Thu, 22 Jan 2009 14:56
8 lines
866 bytes
Sure. For some reason, XML tags are substituted with 0xFEFF when converted to JS strings (both open and close tags). Knowing that,

      s = s.replace (/[\s+\ufeff]/g, " ");




should do the trick. [Untested.]
Technical Details
Message-ID: <59b62a0f.8@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
References: <59b62a0f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,97acec63daa2400b
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: jongware@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Adding Bookmarks
Message-ID: <59b62a0f.8@webcrossing.la2eafNXanI>
Date: Thu, 22 Jan 2009 06:56:32 -0800
References: <59b62a0f.-1@webcrossing.la2eafNXanI>
Lines: 6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit