cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - When posting, your subject should be specific and summarize your question. Here are some additional tips on asking a great question. X

With the ACL language, How to convert in a string the entity character "amp" to the real character

dgopois
13-Aquamarine

With the ACL language, How to convert in a string the entity character "amp" to the real character

Hello,

With the ACL language, How to convert in a string the character entity "amp" to the real character "&"?

I would like a function which converts all entities.

David

ACCEPTED SOLUTION

Accepted Solutions

Again, I strongly recommend reviewing the ACL reference in the Arbortext Help Center. Here is what you seek: http://support.ptc.com/help/arbortext_hc/ae71_hc/en/index.html#page/Program%2Facl_ref%2Fhelp977.html%23

View solution in original post

4 REPLIES 4

https://support.ptc.com/help/arbortext_hc/ae71_hc/en/index.html#page/Program/acl_ref/help909.html

 

This is documented in the Arbortext Help Center, link above. For example, for the declaration <!ENTITY Auml “&#38;#x00C4”> the function entity("Auml") returns "D" (character 0xc4).

To do this for all entities in an Arbortext document you can use the ACL function doc_flatten("text") as described in the link below.

 

https://support.ptc.com/help/arbortext_hc/ae71_hc/en/index.html#page/Program%2Facl_ref%2Fhelp7789.html%23

dgopois
13-Aquamarine
(To:GarethOakes)

Hello,

Thank for your response.

But, for example I assign a variable with the following text "Engineers &amp; technicians" and I would like display in a dialog box the text : Engineers & technicians.

David

Again, I strongly recommend reviewing the ACL reference in the Arbortext Help Center. Here is what you seek: http://support.ptc.com/help/arbortext_hc/ae71_hc/en/index.html#page/Program%2Facl_ref%2Fhelp977.html%23

dgopois
13-Aquamarine
(To:GarethOakes)

Thanks for your help

David

Announcements

Top Tags