Exemple #1
0
        internal static string ReplaceStlEntitiesForAttributeValue(string attrValue, PageInfo pageInfo, ContextInfo contextInfo)
        {
            if (!StlParserUtility.IsStlEntityInclude(attrValue))
            {
                return(attrValue);
            }

            var contentBuilder = new StringBuilder(attrValue);

            ReplaceStlEntities(contentBuilder, pageInfo, contextInfo);
            return(contentBuilder.ToString());
        }
Exemple #2
0
        public async Task <string> ReplaceStlEntitiesForAttributeValueAsync(string attrValue)
        {
            if (!StlParserUtility.IsStlEntityInclude(attrValue))
            {
                return(attrValue);
            }

            var contentBuilder = new StringBuilder(attrValue);

            await ReplaceStlEntitiesAsync(contentBuilder);

            return(contentBuilder.ToString());
        }