Reaction, trapping, and multifractality in one-dimensional systems