Example #1
0
        private string ParseAndAddImages(string content, List <ContentBase> contents, TemplateType type)
        {
            var imgs = MediaParser.ParseImages(content);

            content = MediaParser.RemoveImageTags(content);

            if (imgs.IsNull() || !imgs.Any())
            {
                return(content);
            }

            foreach (var src in imgs)
            {
                contents.Add(NewImageContent(src, type));
            }

            return(content);
        }
Example #2
0
 // TODO:
 private string ParseAndAddSound(string content, List <ContentBase> contents, TemplateType type)
 {
     return(MediaParser.RemoveAudioTags(content));
 }