Ticket #8202: trac_8202-jsmath_hboxes.patch

File trac_8202-jsmath_hboxes.patch, 661 bytes (added by mpatel, 11 years ago)

Disable jsMath's safeHBoxes option. sagenb repo.

  • sagenb/data/sage/js/jsmath.js

    # HG changeset patch
    # User Mitesh Patel <qed777@gmail.com>
    # Date 1265486369 28800
    # Node ID aea9d7060b1d415d2f16094720dccedb17e91a85
    # Parent  65af7febceee14b506d205057be3be284dfb254f
    #8202/sagenb: Allow raw HTML in jsMath's \hbox{}
    
    diff --git a/sagenb/data/sage/js/jsmath.js b/sagenb/data/sage/js/jsmath.js
    a b jsMath.Easy = { 
    9494    //  would allow them to enter arbitrary HTML code within their
    9595    //  math formulas, and that poses a security risk.)
    9696    //
    97     safeHBoxes: 1,
     97    safeHBoxes: 0,
    9898
    9999    //
    100100    //  Show TeX source when mathematics is double-clicked?