How much should I be willing to change a work–say a gory horror story or something with explicit sex–to make it eligible to sell to a magazine that won’t take it in its current form?

How much should I be willing to change a work–say a gory horror story or something with explicit sex–to make it eligible to sell to a magazine that won’t take it in its current form?