Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relax sanitization rules so users can do basic things #663

Closed
maebeale opened this issue Sep 3, 2020 · 0 comments · Fixed by #683
Closed

Relax sanitization rules so users can do basic things #663

maebeale opened this issue Sep 3, 2020 · 0 comments · Fixed by #683
Assignees
Labels
Ruby For Good 2020 Virtual Created for Ruby for Good 2020 Virtual

Comments

@maebeale
Copy link
Collaborator

maebeale commented Sep 3, 2020

Currently users can't use bold, divs with classes, etc

An example in prod:
http://mutual-aid-ggf.herokuapp.com/about

  • They want to use bold, headings, ol/ul
  • Here's their html
<div class="title is-3">About us</div>
<ul>
  <ol>
    <li>
      <span class='title is-5'>What is Mutual Aid?</span>
      <br><br>
      <span class="has-text-weight-bold">Mutual Aid is</span> neighbors supporting neighbors in the spirit of solidarity to meet survival needs, as opposed to non-profit/charity or government work where people are dependent on a central organization. We recognize that <span class="has-text-weight-bold">the community knows best</span> what its needs are and how to meet them.
      <br><br>
      <span class="has-text-weight-bold">Mutual Aid</span> supports all our neighbors, but we recognize current and historical oppression and want to prioritize meeting the needs of our most vulnerable neighbors including <span class="has-text-weight-bold has-text-italic">the poor, sick, elderly, disabled, undocumented, LGBTQ+, Black, Brown, Indigenous and/or people of color.</span>
      <br><br>
      <span class="has-text-weight-bold">Mutual Aid</span> is political and anti-oppressive by nature, and focused on creating <span class="has-text-weight-bold has-text-italic">long-term, sustainable systems of interdependent community care</span> that ultimately lead to a more resilient and self-reliant region. We want to foster a culture of collectivism in the Greater Glens Falls area that operates outside individualism and existing government and non-profit systems.
      <br><br><br><br>
    </li>

    <li>
      <span class='title is-5'>Why is Mutual Aid necessary?</span>
      <br><br>
      <span class="has-text-weight-bold">Mutual Aid</span> fills gaps. It is homegrown and grassroots. It protects the privacy of people who are asking and people who are giving. No strings are attached, in order to avoid power dynamics. It levels the playing field and honors all people. It connects people to existing resources and meets a need for those who fall through the cracks. It supports and strengthens existing organizations.
      <br><br>It is central, human-focused, and, at its roots, it is <span class="has-text-weight-bold">ANTI-OPPRESSION</span>.
<br><br><br><br>
    </li>

    <li>
      <span class='title is-5'>What are the foundations of Mutual Aid?</span>
      <br><br>
      <ul>
        <li>Cooperation, not competition</li>
        <li>Non-hierarchical, non-bureaucratic </li>
        <li>Egalitarian</li>
        <li>Non-discriminatory</li>
        <li>Giving is with no strings attached & no expectations</li>
        <li>Solidarity, not charity</li>
        <li>Mutual aid is offered to anyone, not only those who meet criteria for assistance and are deemed worthy/needy/deserving</li>
      </ul>
      <br><br><br><br>
    </li>

    <li>
      <span class='title is-5'>What do volunteers do?</span>
      <br><br>
      <ul>
        <li>Build our community resource list, collecting info about what already exists</li>
        <li>Train other volunteers</li>
        <li>Bring needs to the group’s attention and help address those needs</li>
        <li>Organize events and advocacy </li>
        <li>Volunteers are needed on an ongoing basis to make matches and dispatch offerings to needs. This means logging in to the software, making matches, sending texts and emails and making phone calls, and logging notes. </li>
        <li>Participate in Slack, the Facebook Group and/or meetings to keep in the loop</li>
      </ul>
      <br><br><br><br>
    </li>
  </ol>
</ul>
@maebeale maebeale added the Ruby For Good 2020 Virtual Created for Ruby for Good 2020 Virtual label Sep 3, 2020
@viamin viamin self-assigned this Sep 5, 2020
viamin added a commit that referenced this issue Sep 5, 2020
the HTMLSanitizer model
Also add a spec file for this (not all methods and
whitelisted attributes are present)

Addresses #663
@solebared solebared linked a pull request Sep 5, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Ruby For Good 2020 Virtual Created for Ruby for Good 2020 Virtual
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants