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

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

SOLVED
Highlighted
Garnet

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

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: With the ACL language, How to convert in a string the entity character "amp" to the re

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...

View solution in original post

4 REPLIES 4
Highlighted

Re: With the ACL language, How to convert in a string the entity character "amp" to the re

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.ht...

Highlighted

Re: With the ACL language, How to convert in a string the entity character "amp" to the re

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

Highlighted

Re: With the ACL language, How to convert in a string the entity character "amp" to the re

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...

View solution in original post

Highlighted

Re: With the ACL language, How to convert in a string the entity character "amp" to the re

Thanks for your help

David

Announcements