DefaultFilenameFormatSanitizer.SanitizePlaceholder method
namespace: Serenity.ComponentModel assembly: Serenity.Net.Core
Default implementation for sanitizing values of replacement placeholders in a file name format string like |X|/|Y|. Trims the value, if is empty, returns "_". , Characters like '/', '&', and diacricits etc are replaced by calling StringHelper.SanitizeFileName, then replacing backslashes with underscore, double dots and tailing dots with underscore
public virtual string SanitizePlaceholder(string _, string value)
parameter | description |
---|---|
_ | Key for placeholder, ignored by this implementation. |
value | Value to be sanitized |