Loading ...
Sorry, an error occurred while loading the content.

23345Re: [Clip] Adding id="Date_here" to clip

Expand Messages
  • Axel Berger
    Nov 10 5:57 AM
      Mike Breiding - Morgantown WV wrote:
      > <p class="date" id="Day_Date_Year">Day Date Year</p>
      > I would like to add both the ID and replace spaces with underscores.

      There were several possibilities for the first question and one good one
      for this:

      ^!Set %datum%=^?{Date:=^$GetSelection$}
      ^!Set %iddat%=^$StrReplace(" ";"_";"^%datum%";A)$
      ^!InsertHtml <p class="date" id="^%iddat%>%datum%</p>^P

      Untested, may contain nuts.

      Axel
    • Show all 9 messages in this topic