Features

Excel Html Entities

Excel Html Entities

Features

Excel HtmlEntityConversion Export

Flexsheet supports saving the xlsx file with HTML entities content, too. In the client, convertHtmlEntities property of IFlexSheetXlsxOptions defines the conversion behavior for HTML entities such as """, "<", ">" and "&" when exporting. The default value is HtmlEntityConversion.Auto.

File Name: Convert HTML Entities
using Microsoft.AspNetCore.Mvc;

namespace FlexSheetExplorer.Controllers
{
    public partial class FlexSheetController : Controller
    {
        public ActionResult ExcelHtmlEntities()
        {
            return View();
        }
    }
}
@section Scripts{
<script type="text/javascript" src="~/Scripts/flexSheet/excelHtmlEntities.js"></script>
}

<div>
    <div class="copy">
        <h3>@Html.Raw(FlexSheetRes.ExcelIO_HtmlConversion_Text0)</h3>

        <p>@Html.Raw(FlexSheetRes.ExcelIO_HtmlConversion_Text1)</p>

    </div>
    <div class="row">
        <div class="col-md-12 col-xs-24">
            <div class="form-inline well well-lg">
                @Html.Raw(FlexSheetRes.ExcelIO_Text3)
                <input type="text" class="form-control" id="fileName2" />
                @Html.Raw(FlexSheetRes.ExcelIO_HtmlConversion_Text2)
                <c1-combo-box id="HtmlEntityConversion" is-editable="false" >
                </c1-combo-box>
                <button class="btn btn-default" onclick="exportHtmlEntities()">@Html.Raw(FlexSheetRes.ExcelIO_Text5)</button>
            </div>
        </div>
    </div>
    <div>
        <c1-flex-sheet class="flexSheet" id="excelHtmlEntitiesSheet" selected-sheet-index="0">
            <c1-unbound-sheet column-count="10" row-count="10" name="Unbound"></c1-unbound-sheet>
        </c1-flex-sheet>
    </div>
</div>