Language: JavaScript
Label: safe
CWE: CWE-829 \u2014 Inclusion of Functionality from Untrusted Control Sphere
The product imports, requires, or includes executable functionality (such as a library) from a source that is outside of the intended control sphere.

Code:
  addWastageSaleItem: function() {

    var html = '<tr>\
                <td class="col-md-5"> <input type="text" name="wastageSaleItem[]" placeholder="Enter Item name and details" class="wastageSaleItem form-control" required> </td>\
                <td class="col-md-2"> <input type="number" step="any" name="wastageSaleItemQnt[]" class="wastageSaleItemQnt form-control" required> </td>\
                <td class="col-md-2"> <input type="number" step="any" name="wastageSaleItemPrice[]" class="wastageSaleItemPrice form-control" required> </td>\
                <td class="text-right wastageSaleItemSubtotal">0.00</td>\
                <td style="width: 30px; !important"> \
                    <i style="cursor: pointer;" class="fa fa-trash-o removeThisItem"></i> \
                </td> \
            </tr>';

    $("#productTable > tbody").append(html);

    /* Focus the item name input field */
    $(".wastageSaleItem").focus();

    /* Count all totals */
    this.grandTotal();

  }