Closed lalov1 closed 7 months ago
hmm, which page is this? it would only be double escaping if the title is actually "&" and not "&"
https://klesse.utsa.edu/civil-environmental-construction-management/
I wonder if it's because it's escaped at the top, but then escaped at the bottom again.
oh haha, it totally is lol, let me add the trim up top and remove it
##
#set ( $callingPage = $currentPage.metadata )
#set ( $title = $_EscapeTool.xml($callingPage.title.trim()) )
#set ( $displayName = $_EscapeTool.xml($callingPage.displayName.trim()) )
#set ( $name = $_EscapeTool.xml($currentPage.name.trim()) )
#set ( $fullSiteName = $_EscapeTool.xml($siteSetup.metadata.title).trim() )
##
## title: ${title}
## dn: ${displayName}
## name: ${name}
## $_PropertyTool.outputProperties($currentPage)
## $_PropertyTool.outputProperties($callingPage)
##
#set ( $outputTitle = $displayName )
#if ( $_PropertyTool.isEmpty($outputTitle) )
#set ( $outputTitle = $title )
#end
#if ( $_PropertyTool.isEmpty($displayName) and $_PropertyTool.isEmpty($title) )
#set ( $outputTitle = $name )
#end
#set ( $outTitle = $outputTitle )
##
${outTitle} | $fullSiteName | UTSA | University of Texas at San Antonio
remove repeated EscapeTool.xml calls
I've noticed the character code is showing in the title of some pages with ampersands or other characters. This is from title being escaped, so I don't know if there is any way around this.
https://walledev.it.utsa.edu/entity/open.act?id=923d1b3c81736a1b6bf065e1d9394051&type=format