/// <summary> /// Gets the start marker. /// /// </summary> /// <param name="placeholderKey">The placeholder key.</param><param name="data">The data.</param><param name="selectable">if set to <c>true</c> [selectable].</param> /// <returns> /// The start marker. /// </returns> public static string GetStartMarker(string placeholderKey, ChromeData data, bool selectable) { Assert.ArgumentNotNull((object)placeholderKey, "placeholderKey"); Assert.ArgumentNotNull((object)data, "data"); StringBuilder stringBuilder = new StringBuilder(); string str = Placeholder72.EscapeNonWordCharacters(placeholderKey); stringBuilder.AppendFormat("<code type='text/sitecore' chromeType='placeholder' kind='open' id='{0}' key='{1}' class='scpm' data-selectable='{2}'>", (object)str, (object)placeholderKey, (object)MainUtil.BoolToString(selectable)); stringBuilder.Append(data.ToJson()); stringBuilder.Append("</code>"); return(((object)stringBuilder).ToString()); }
/// <summary> /// Gets the escaped placeholder key. /// </summary> /// <param name="inputKey">The key.</param> /// <returns> /// The escaped placeholder key. /// </returns> public string GetEscapedKey(string inputKey) { Assert.ArgumentNotNull((object)inputKey, "inputKey"); return(Placeholder72.EscapeNonWordCharacters(inputKey)); }